import java.awt.geom.Point2D.Double;
import java.util.Random;

public class RandomAgent extends Agent{

	public double exploreChance = 1;
	Random gen; //generate random numbers

	public RandomAgent(int line_of_sight, int line_of_sight2)
	{
		//System.out.println("I MAED A RANDOM DURRR");
		gen = new Random(); //initialize random number generator
	}
	
	public Double getMove(double[][] input,Car car)
	{
		Double action = new Double();
		action.x = 0;
		action.y = 0;
		
		if (gen.nextBoolean())
		{
			if (gen.nextBoolean())
			{
				action.x = 1;
				//System.out.println("RIGHT DURR");
			}
			else
			{
				action.x = -1;
				//System.out.println("LEFT DURR");
			}
		}
		
		else
		{
			if (gen.nextBoolean())
			{
				action.y = 1;
				//System.out.println("GAS DURR");
			}
			else
			{
				action.y = -1;
				//System.out.println("BRAKE DURR");
			}
		}
		
	return action;
	}
	
	//Random agent doesn't do anything with the reward
	public void putReward(double reward)
	{
		
	}
	
	
}
